fontbutton: Call the css node "fontbutton"
authorTimm Bäder <mail@baedert.org>
Thu, 4 May 2017 07:36:22 +0000 (09:36 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:11 +0000 (21:27 -0400)
Otherwise the default looks like a button inside a button.

gtk/gtkbutton.c
gtk/gtkfontbutton.c

index aefa8eaa5b5e2d8b34d462feeca4db3de6a02d1d..e9ac07db5f4893fd657d28e531b2d1c1f6a7c8e4 100644 (file)
@@ -47,7 +47,7 @@
  *
  * Button-like widgets like #GtkToggleButton, #GtkMenuButton, #GtkVolumeButton,
  * #GtkLockButton, #GtkColorButton, #GtkFontButton or #GtkFileChooserButton use
- * style classes such as .toggle, .popup, .scale, .lock, .color, .font, .file
+ * style classes such as .toggle, .popup, .scale, .lock, .color, .file
  * to differentiate themselves from a plain GtkButton.
  */
 
index c7e0ea7a610dd131a2d61b0467e2caa83c2b4399..10c73d764002edd3f9faf2db1c84da674a00ba68 100644 (file)
@@ -58,7 +58,7 @@
  *
  * # CSS nodes
  *
- * GtkFontButton has a single CSS node with name button and style class .font.
+ * GtkFontButton has a single CSS node with name fontbutton.
  */
 
 
@@ -611,7 +611,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
                                                 g_cclosure_marshal_VOID__VOID,
                                                 G_TYPE_NONE, 0);
 
-  gtk_widget_class_set_css_name (widget_class, "button");
+  gtk_widget_class_set_css_name (widget_class, "fontbutton");
 }
 
 static void